package com.ztx.web.controller.manager;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ztx.model.JklsVO;
import com.ztx.model.JklsViewVO;
import com.ztx.pagemodel.easyui.DataGrid;
import com.ztx.pagemodel.easyui.PageHelper;
import com.ztx.service.manager.IJklsService;

@Controller
@RequestMapping("jkls")
public class JklsQueryController {

	@Resource
	private IJklsService jklsService = null;

	/**
	 * 跳转到查询页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "list", method = RequestMethod.GET)
	public String list() {
		return "manager/jkls";
	}

	@RequestMapping(value = "datagrid",method=RequestMethod.POST)
	@ResponseBody
	public DataGrid<JklsVO> datagrid(PageHelper ph,JklsViewVO params) {
		return jklsService.queryJkls(ph,params);
	}

}
